Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use project relative paths #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Use project relative paths #10

wants to merge 1 commit into from

Conversation

sol
Copy link

@sol sol commented Jun 20, 2022

This reduces the install instruction to 3 simple steps.

Add a Git submodule to your KiCad project:

git submodule add https://github.com/ncarandini/KiCad-RP-Pico

Create a file sym-lib-table with:

(sym_lib_table
  (lib (name "MCU_RaspberryPi_and_Boards")(type "KiCad")(uri "${KIPRJMOD}/KiCad-RP-Pico/RP-Pico Libraries/MCU_RaspberryPi_and_Boards.kicad_sym")(options "")(descr ""))
)

Create a file fp-lib-table with:

(fp_lib_table
  (lib (name "MCU_RaspberryPi_and_Boards")(type "KiCad")(uri "${KIPRJMOD}/KiCad-RP-Pico/RP-Pico Libraries/MCU_RaspberryPi_and_Boards.pretty")(options "")(descr ""))
)

NOTE: Instead of creating or editing these files manually you can also add them through the GUI ("Project Specific Libraries"). KiCad will then create those files for you.

sym
fp

@ncarandini this results in a different workflow in which every project is self-contained. This is usually what you want if you work with others and for reproducibility. However, it's different from what you were doing so far, so I understand if this may not be suitable for merging. If so, please let me know and I'll consider to maintain my own fork.

If you think this is suitable for upstream, then let me know and I can update the documentation.

This reduces the install instruction to 3 simple steps.

Add a Git submodule to your KiCad project:

```
git submodule add https://github.com/ncarandini/KiCad-RP-Pico
```

Create a file `sym-lib-table` with:

```
(sym_lib_table
  (lib (name "MCU_RaspberryPi_and_Boards")(type "KiCad")(uri "${KIPRJMOD}/KiCad-RP-Pico/RP-Pico Libraries/MCU_RaspberryPi_and_Boards.kicad_sym")(options "")(descr ""))
)
```

Create a file `fp-lib-table` with:

```
(fp_lib_table
  (lib (name "MCU_RaspberryPi_and_Boards")(type "KiCad")(uri "${KIPRJMOD}/KiCad-RP-Pico/RP-Pico Libraries/MCU_RaspberryPi_and_Boards.pretty")(options "")(descr ""))
)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant